package com.blb.mapper;

import com.blb.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wss
 * @since 2020-05-22
 */
public interface OrderMapper extends BaseMapper<Order> {

    List<Order> getPages(@Param("start") Integer start, @Param("length") Integer length, @Param("sldd") String sldd ,@Param("orderStatus") String orderStatus
    ,@Param("orderId")String orderId ,@Param("orderTime")String orderTime,@Param("cuId")String cuId);

    Integer getCount(String cuId);

    Integer getCount(String cuId,String orderStatus);

    Order getByOrderID(String orderId);

    String getSumById(String orderId);

   Order getAll(@Param("orderId") String orderId);

   Integer getCountByOrderStatus(@Param("orderStatus")String orderStatus,@Param("cuId")String cuId);

}
